import request from '@/utils/myrequest'
// 初始化信息
function getList(kvs) {
  return request({
    url: '/mtms/ToolingStagelife/GetList',
    method: 'get',
    kvs
  })
}
// 删除
function doDelete(kvs) {
  return request({
    url: '/mtms/ToolingStagelife/Delete',
    method: 'POST',
    kvs
  })
}
// 新增
function doAdd(kvs) {
  return request({
    url: '/mtms/ToolingStagelife/Add',
    method: 'POST',
    kvs
  })
}
// 编辑修改
function getInfo(kvs) {
  return request({
    url: '/mtms/ToolingStagelife/Get',
    method: 'get',
    kvs
  })
}
// 更新
function doUpdate(kvs) {
  return request({
    url: '/mtms/ToolingStagelife/Update',
    method: 'POST',
    kvs
  })
}
// 获取寿命下拉框
function getLifeTimeList(kvs) {
  return request({
    url: '/mtms/ToolingStagelife/GetLifeTimeList',
    method: 'get',
    kvs
  })
}
export default {
  getList, doDelete, doAdd, getInfo, doUpdate, getLifeTimeList
}
